package cn.iocoder.yudao.module.reading.dal.dataobject.punch;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 打卡绘本关联 DO
 *
 * @author 芋道源码
 */
@TableName("punch_books")
@KeySequence("punch_books_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PunchBookDO extends BaseDO {

    /**
     * 关联ID
     */
    @TableId
    private Long id;
    /**
     * 打卡记录ID
     */
    private Long punchId;
    /**
     * 绘本ID
     */
    private Long bookId;
    /**
     * 阅读时间
     */
    private LocalDateTime readAt;

}
